// gulp 的入口文件,

const { series, parallel } = require('gulp')

const task1 = done => {
  setTimeout(() => {
    console.log('task1 workiing~')
    done()
  }, 1000)
}

const task2 = done => {
  setTimeout(() => {
    console.log('task2 workiing~')
    done()
  }, 1000)
}

const task3 = done => {
  setTimeout(() => {
    console.log('task3 workiing~')
    done()
  }, 1000)
}

// series 串行任务
exports.foo = series(task1, task2, task3)

// parallel 并行任务
exports.bar = parallel(task1, task2, task3)
